function act() {
    var a = cm.getReactor().getState();
    if (a == 2) {
        cm.getReactor().delayedDestroyReactor(0);
        var b = cm.getPlayer().getPosition();
        if (Math.abs(b.x + 332) < 50 && Math.abs(b.y - 91) < 50) {
            cm.updateInfoQuest(63070, "end=1");
            cm.afterlandChangeMapObject("q63070Pen_in", 1, 0, 1000, 0, 0, 0, 0);
            cm.afterlandChangeMapObject("q63070Pen_out", 1, 1, 1000, 0, 0, 0, 0);
            cm.afterlandChangeMapObject("q63070Pen_out_pos", 1, 0, 0, 0, 0, 0, 0);
            cm.afterlandChangeMapObject("q63070_in", 1, 0, 1000, 0, 0, 0, 0);
            cm.afterlandChangeMapObject("q63068_out", 1, 0, 0, 0, 0, 0, 0);
            cm.afterlandChangeMapObject("q63070_out_pos", 1, 1, 1000, 0, 0, 0, 0);
            cm.getMap().spawnReactorIfNotExist(8659071, 0, 910, 67, 0, "q63070_reactor2");
            cm.openScriptNpc()
        } else {
            cm.spawnReactorOnGroundBelow(8659072, b.x, b.y)
        }
    } else {
        cm.getMap().getReactorById(8659072).forceHitReactor(cm.getPlayer(), 1, 623, 68, 0);
        cm.getMap().getReactorById(8659072).forceHitReactor(null, 2, -53, 91, 0);
        cm.getReactor().delayedDestroyReactor(0)
    }
}
var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.sendNormalTalk("#b现在去搬运#p9400216#的金银财宝吧。", 2, 0, false, true)
        } else {
            cm.dispose()
        }
    }
};